package com.lhd.action.memento;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: liuhd
 * @Date: 2024/12/19 17:05
 * @Description: 负责人
 */
public class Caretaker {
    List<Memento> mementoList = new ArrayList<>();
    public Memento getState(int index){
        return mementoList.get(index);
    }
    public void setState(Memento memento){
        mementoList.add(memento);
    }
}
